using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblAdmin
	{
	private int stt;
	private int parentID;
	private int idTruong;
	private string email;
	private string password;
	private string fullName;
	private string phoneNumber;
	private string enable;
	private object avatar;
	public tblAdmin()
	{}
	public tblAdmin(int stt,int parentID,int idTruong,string email,string password,string fullName,string phoneNumber,string enable,object avatar)
	{
	this.stt = stt;
	this.parentID = parentID;
	this.idTruong = idTruong;
	this.email = email;
	this.password = password;
	this.fullName = fullName;
	this.phoneNumber = phoneNumber;
	this.enable = enable;
	this.avatar = avatar;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public int ParentID{
	get { return this.parentID;}
	set {this.parentID=value;}
	}
	public int IdTruong{
	get { return this.idTruong;}
	set {this.idTruong=value;}
	}
	public string Email{
	get { return this.email;}
	set {this.email=value;}
	}
	public string Password{
	get { return this.password;}
	set {this.password=value;}
	}
	public string FullName{
	get { return this.fullName;}
	set {this.fullName=value;}
	}
	public string PhoneNumber{
	get { return this.phoneNumber;}
	set {this.phoneNumber=value;}
	}
	public string Enable{
	get { return this.enable;}
	set {this.enable=value;}
	}
	public object Avatar{
	get { return this.avatar;}
	set {this.avatar=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.parentID+"; "+this.idTruong+"; "+this.email+"; "+this.password+"; "+this.fullName+"; "+this.phoneNumber+"; "+this.enable+"; "+this.avatar+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblAdmin me=(tblAdmin)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 